<script>
import { useRouter } from "vue-router";
export default ({
    setup() {
        const router = useRouter()
        const goBack = () => router.back(-1)
        return {
            goBack
        }
    }
})
</script>

<template>
    <div class="header">
        <van-icon name="arrow-left" @click="goBack" class="img" />
        <p class="strong">not-found</p>
        <p>&nbsp;</p>
    </div>
    <div class="container">
        <div class="animation">
            <h1>页面丢失了~</h1>
            <h2>请回退到正确页面吧~</h2>
            <h3>栓Q~</h3>
        </div>
    </div>
</template>

<style scoped lang="less">
@keyframes showPages {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animation {
    animation: showPages 1.5s ease;
    animation-fill-mode: forwards;
}

.header {
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    line-height: 30px;
    background: linear-gradient(10deg, #eee, #fff, #eee);
}

.img {
    width: 15px;
    height: auto;
}

.strong {
    font-size: 18px;
    font-weight: 900;
    color: #000;
}
</style>